package com.kyivmohyla.kma2.dao.mapper;

import com.kyivmohyla.kma2.model.Staff;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class StaffRowMapper implements RowMapper<Staff> {

    @Override
    public Staff mapRow(ResultSet rs, int line) throws SQLException {
        StaffResultSetExtractor extractor = new StaffResultSetExtractor();
        return extractor.extractData(rs);
    }

}
